package cont

import (
	jsoniter "github.com/json-iterator/go"
	"google.golang.org/protobuf/encoding/protojson"
	"os"
	"time"
)

const (
	TimeFormat    = time.DateTime
	TimeFormatDay = time.DateOnly

	PathSeparator     = string(os.PathSeparator)     // 路径分隔符（分隔路径元素）
	PathListSeparator = string(os.PathListSeparator) // 路径列表分隔符（分隔多个路径）
	ConfigPath        = "/config/config.toml"
	GinStaticPublic   = "/static/public/"
	GinStaticUpload   = "/static/upload/"
)

var (
	Json      = jsoniter.ConfigCompatibleWithStandardLibrary
	ProtoJson = protojson.MarshalOptions{EmitUnpopulated: true}
)
